<?php
class mdl_log_table extends ujn_model {
	
	protected function __construct() {
		parent::__construct();
		$this->db_name		= GAME;
		$this->tbl_name		= "`{$this->db_name}`.`" . GAME . "_logtable`";
		$this->_db			= $this->mysql();
	}
	
	function getDataByLid($lid, $tbl = '') {
		$d = array();
		if(!empty($tbl)) {
			$sql = "SELECT * FROM `{$this->db_name}`.`{$tbl}` a WHERE id='$lid';";
			$d = $this->_db->getAll($sql);
		}
		return $d;
	}	

    /**
     * 单例模型
     * @return mdl_log_table
     */
	static function getInstance() {
        return parent::getInstance(__CLASS__);
	}	
}